// 布局
.kmerit-finbuv-layout {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  .kmerit-finbuv-header.header {
    // 头部
    color: $title-color;
    background: $moudle-color;
    display: flex;
    // height: 78px;
    height: 60px;
    border-bottom: 1px solid $dividing-line-color;
    .header-left {
      display: flex;
      align-items: center;
      width: 240px;
      padding: 14px 17px;
      img {
        width: 28px;
        height: 36px;
      }
      .title {
        display: flex;
        flex-direction: column;
        margin-left: 15px;
        font-family: $chinese-font-family;
        .big-title {
          font-size: 18px;
          font-weight: 600;
        }
        .small-title {
          font-size: 14px;
          font-weight: 400;
        }
      }
    }
    .header-right {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      i {
        font-size: 20px;
        color: $icon-header-color;
      }
      .time {
        margin-right: 60px;
        font-size: 16px;
      }
      .message {
        margin-right: 60px;
      }
      .user-icon {
        width: 36px;
        height: 36px;
        background: $icon-user-bg-color;
        border-radius: 50%;
        line-height: 36px;
        text-align: center;
        margin-right: 16px;
        display: inline-block;
        i {
          font-size: 18px;
        }
      }
      .user-name {
        margin-right: 24px;
        color: $title-color;
        font-size: 14px;
      }
    }
  }
  .kmerit-finbuv-content {
    // 中部
    flex: 1;
    width: 100%;
    // height: 100%;
    // height: calc(100vh - 78px);
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: row;
    .kmerit-finbuv-left {
      // 菜单
      transition: all 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);
      .left-menu:not(.el-menu--collapse) {
        width: 240px;
        min-height: 400px;
      }
      // 折叠展开问题
      position: relative;
      .el-menu {
        height: 100%;
      }
      .left-sidebar {
        // position: relative;
        height: 100%;
        overflow: hidden;
        overflow-y: scroll;
      }
      .left-collapse {
        position: absolute;
        right: 16px;
        bottom: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        border-radius: var(--border-radius-small);
        cursor: pointer;
        i {
          font-size: 20px;
          color: $clickable-color;
        }
      }
    }
    .kmerit-finbuv-right {
      flex: 1;
      overflow: hidden; // 解决flex:1,height:100%的问题
      overflow-y: scroll;
      background: $backgroud-color;
      height: 100%;
      // min-height: calc(100vh - 78px);
      width: 100%;
      display: flex;
      flex-direction: column;
      .kmerit-finbuv-tag,
      .tags-view-container {
        // height: 40px;
        height: 52px;
        margin-top: 10px;
        width: 100%;
        background: $backgroud-color;
        border-bottom: 1px solid $tab-dividing-line-color;
        .el-scrollbar:hover > .el-scrollbar__bar {
          opacity: 0;
        }
        .tags-view-wrapper {
          .tags-view-item {
            // height: 40px;
            // line-height: 40px;
            height: 40px;
            line-height: 32px;
            font-size: 14px;
            font-family: PingFangSC-Regular, PingFang SC;
            font-weight: 400;
            color: $text-color;
            background: $backgroud-color;
            display: inline-block;
            position: relative;
            cursor: pointer;
            padding: 0 17px;
            // &:not(:first-child) {
            //   &::before {
            //     content: "";
            //     background: #627187;
            //     display: inline-block;
            //     width: 1px;
            //     height: 12px;
            //     position: absolute;
            //     top: 11px;
            //     left: 0;
            //   }
            // }
            // &:first-of-type {
            //   margin-left: 24px;
            // }
            &:last-of-type {
              margin-right: 15px;
            }
            &.active + span {
              &::before {
                content: none;
              }
            }
            &.active {
              background: $tab-bg-color;
              color: $title-color;
              &::before {
                content: none;
              }
              // 左侧圆点
              // &::before {
              //   content: '';
              //   background: #fff;
              //   display: inline-block;
              //   width: 8px;
              //   height: 8px;
              //   border-radius: 50%;
              //   position: relative;
              //   margin-right: 2px;
              // }
            }
            .el-icon-close {
              font-size: 16px;
            }
          }
        }
        .contextmenu {
          margin: 0;
          background: $backgroud-color;
          z-index: 3000;
          position: absolute;
          list-style-type: none;
          padding: 5px 0;
          border-radius: 4px;
          font-size: 12px;
          font-weight: 400;
          color: $text-color;
          box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.3);
          li {
            margin: 0;
            padding: 7px 16px;
            cursor: pointer;
            &:hover {
              background: $moudle-color;
            }
          }
        }
        .tags-view-wrapper {
          .tags-view-item {
            .el-icon-close {
              width: 16px;
              height: 16px;
              // vertical-align: 0;
              border-radius: 50%;
              text-align: center;
              transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
              transform-origin: 100% 50%;
              &:before {
                transform: scale(0.6);
                display: inline-block;
                // vertical-align: 0px;
              }
              &:hover {
                background-color: $icon-header-color;
                color: $title-color;
              }
            }
          }
        }
      }
      .kmerit-finbuv-breadcrumb {
        width: 100%;
        height: 23px;
        .breadcrumb-container {
          font-size: 13px;
          padding: 10px 17px 0 17px;
          .el-breadcrumb__item {
            .el-breadcrumb__inner {
              color: $text-color;
            }
            &:last-of-type {
              .el-breadcrumb__inner {
                color: $title-color;
              }
            }
          }
        }
      }
      .kmerit-finbuv-main.app-main {
        flex: 1;
        // overflow: hidden; // 解决flex:1,height:100%的问题
        background: $backgroud-color;
        padding: $layout-padding;
      }
      .kmerit-finbuv-footer {
      }
    }
  }
}
